//
// Created by swe_dev on 25-4-4.
//

#ifndef IWDG_TASK_HPP
#define IWDG_TASK_HPP

#include "task.hpp"
#include "iwdg.h"

class IWDGTask : public Task {
public:

    IWDGTask() {
        period_ms = 50U;
    }

    void init_task() override {
        HAL_IWDG_Init(&hiwdg);
    }

    void period_task() override {
        HAL_IWDG_Refresh(&hiwdg);
    }


};

#endif //IWDG_TASK_HPP
